/*
 * SonarQube
 * Copyright (C) 2009-2017 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
@import (reference) "../variables";
@import (reference) "../mixins";
@import (reference) "ui";

.formatted() {
  line-height: 1.5;

  p, ul, ol, pre, blockquote, table, h2, h3, h4, h5, h6 {
    margin: 1em 0;
  }

  h2 {
    font-size: @bigFontSize;
    font-weight: 400;
  }

  h3, h4, h5, h6 {
    font-size: @baseFontSize;
    font-weight: 600;
  }

  pre, code {
    font-family: @monoFontFamily;
    font-size: @smallFontSize;
  }

  pre {
    padding: 10px;
    border-top: 1px solid @barBorderColor;
    border-bottom: 1px solid @barBorderColor;
    line-height: 18px;
    overflow: auto;
  }

  code {
    padding: 0.2em 0.45em;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    white-space: nowrap;
  }

  pre > code {
    padding: 0;
    background-color: transparent;
    white-space: pre;
  }

  blockquote {
    line-height: 1.5;
    padding-left: 15px;
    padding-right: 15px;
  }

  ul {
    padding-left: 40px;
    list-style: disc;
  }

  li > ul {
    margin: 0.3em 0;
  }

  ol {
    padding-left: 40px;
    list-style: decimal;
  }

  table {
    min-width: 50%;
    border-collapse: collapse;
    border: 1px solid @barBorderColor;
  }

  th {
    padding: 5px 10px;
    border: 1px solid @barBorderColor;
    background-color: @barBackgroundColor;
    font-weight: 600;
    text-align: center;
  }

  td {
    padding: 5px 10px;
    border: 1px solid @barBorderColor;
  }

}
